<?php
/*   Description  of this file
*    Author king-of-war
*    Last Modified 2009-4-8
*    This class designed  for the news operation
*/
$root_path='./';
include_once $root_path.'smart.inc.php';
include_once $root_path.'/class/common.php';
include_once $root_path.'head.php';
/*
*  get pages
*/
if (isset($_GET['id'])) {
	$id= $_GET['id'];
} else {
	$id = 1;
}

/*
 *  news_get($arr,1) $arr mean range ; 1means admin
 */
 $common=new common($root_path);


$pro=$common->get_pro($id);
/* add count*/
$common->count_add('pro');

$pro['prev']=$id-1;
$pro['next']=$id+1;
/*
*  set templates
*/

$smarty->assign("pro",$pro);
$smarty->assign("url",$temp_url);
$smarty->display("pro.html");

include_once  "foot.php";

?>